package com.nervenets.web.controller.tags;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class TagsEditParams extends TokenParams {
    @ApiModelProperty(value = "分类的类别Id，传0为新建")
    private long tagsId;
    @ApiModelProperty(value = "所属团队ID", required = true)
    @Positive(message = "团队ID不能为空")
    private long managerId;
    @ApiModelProperty(value = "标签名称", required = true)
    @NotNull(message = "标签名称不能为空")
    private String name;
    @ApiModelProperty(value = "权重，值越大越靠前，每次筛选时，权重会默认+1")
    private int weight;
    @ApiModelProperty(value = "是否启用")
    private boolean enable;
}
